package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.CriterionDef;
import cn.topevery.garden.entity.po.CriterionEvaluationShow;
import cn.topevery.garden.entity.query.CriterionEvaluationShowQuery;
import cn.topevery.garden.entity.vo.CriterionEvaluationShowVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;

/**
 * 
 *
 * @author code-generate
 * @date 2022-01-05
 */
public interface CriterionEvaluationShowDao extends BaseDao<CriterionEvaluationShow> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<CriterionEvaluationShowVO> listPage(CriterionEvaluationShowQuery query);

    CriterionEvaluationShow getEntityByColumn(String key,String value);

    List<CriterionEvaluationShow> getRelationListByCriterionIdAndMapId(List<CriterionDef> criterionList, String mapId);

    void evaluation(List<CriterionEvaluationShow> evaluationList, Integer userId);

    void yearForNewData();

    CriterionEvaluationShow getByCriterionIdAndMapId(String criterionId, String mapId);

    List<CriterionEvaluationShow> getListByCriterionId(String criterionId);

    void updateCountWhenPartakeChange(String criterionId, Integer flag);
}
